import httpInstance from "@/utils/http"

/**
 * 下载单个文件
 * @param filePath 文件路径
 * @returns {*}
 */
export function downloadFile(filePath) {
    return httpInstance({
        method: "get",
        url: "/download/filePath"
    })
}

/**
 * 打包下载文件
 * @param filePaths 文件路径集合
 * @param currentPath 当前所在路径
 * @returns {*}
 */
export function downloadFiles(filePaths,currentPath) {
    return httpInstance({
        method: "get",
        url: "/download/filePaths",
        params:{filePaths,currentPath},
        responseType:"blob"
    })
}



